import { uiwu } from "@/api/interface/interface"
import type { LoginParamsItf, editPsdParamsItf } from './type'

/** 登录 **/
export const loginApi = async(data: LoginParamsItf): Promise<any> => {
    return await uiwu.post({
        url: `fans/login`,
        data
    })
}

/** 修改密码 **/
export const editPsdApi = async(data: editPsdParamsItf): Promise<any> => {
    return await uiwu.post({
        url: 'fans/updatePwd',
        data
    })
}

/** 用户信息 **/
export const userInfoApi = async(): Promise<any> => {
    return await uiwu.get({
        url: `user/userinfo`
    })
}
